package com.example.core.usersManage.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

/**
 * @ClassName UserManage
 * @Author zhangzhaoyang
 * @Date 2019/10/22 14:59
 **/
@Controller
@RequestMapping("/user")
public class UserManage {
    private static Logger logger = LoggerFactory.getLogger(UserManage.class);

    /**
     * 加载用户的登陆信息
     * @return
     */
    @RequestMapping(value = "/usersInfo", method = RequestMethod.GET)
    @ResponseBody
    public ModelAndView usersInfo(){
        ModelAndView modelAndView = new ModelAndView();
        logger.info("{=====加载用户的登陆信息=====}");
        modelAndView.setViewName("/usersManage");

        return modelAndView;
    }


}
